<template>
  <div>
    <ul>
      <li v-for="i in list1" :key="i">{{i.name}}
        <router-link :to="{path:'sty', query:{id: i.id}}">配置参数</router-link>
        <router-link :to="{path: 'qingjia', query: {id:i.id}}"> 我要请假 </router-link>
      </li>
    </ul>
  </div>
</template>

<script>
import myaxios from 'axios'
export default {
name: "workfol",
  data(){
   return{
     list1:[]
   }
  },
  methods:{
    get_list(){
      myaxios({url:'http://127.0.0.1:5000/workflow', method:'get'})
      .then(res=>{
        this.list1 = res.data.list
      })
    }
  },
  mounted() {
    this.get_list()
  }

}
</script>

<style scoped>

</style>